/* 侧边栏基础样式 */
.sidebar-card {
    background-color: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    transition: var(--transition);
    overflow: hidden;
}

.sidebar-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.sidebar-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    /*border-bottom: 1px solid var(--light-gray);*/
    border-bottom: 1px solid var(--border);
}

.sidebar-card .card-header .card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    color: var(--dark-gray);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-card .card-header .card-title i {
    color: var(--primary);
}

.sidebar-card .card-header .see-all {
    font-size: 0.85rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.sidebar-card .card-header .see-all:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}


/* 用户信息样式 */
.sidebar-card.user-profile-card {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

.sidebar-card.user-profile-card .card-header {
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

.sidebar-card.user-profile-card .card-title {
    color: white;
}

.sidebar-card.user-profile-card .card-title i {
    color: white;
}

.sidebar-card.user-profile-card .profile-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 0;
}

.sidebar-card.user-profile-card .profile-info .profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.sidebar-card.user-profile-card .profile-info .profile-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
}

.sidebar-card.user-profile-card .profile-info .profile-bio {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 1rem 0;
    text-align: center;
    max-width: 90%;
}

.sidebar-card.user-profile-card .profile-info .profile-stats {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    width: 100%;
    margin-bottom: 1rem;
}

.sidebar-card.user-profile-card .profile-info .stat-item {
    text-align: center;
}

.sidebar-card.user-profile-card .profile-info .stat-value {
    font-weight: 600;
    font-size: 1.1rem;
    margin: 0;
}

.sidebar-card.user-profile-card .profile-info .stat-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.sidebar-card.user-profile-card .profile-info .edit-profile-btn {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    border-radius: 20px;
    padding: 0.4rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    width: 100%;
}

.sidebar-card.user-profile-card .profile-info .edit-profile-btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

/* 推荐文章样式 */
.sidebar-card .articles .article-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--light-gray);
    cursor: pointer;
    transition: var(--transition);
}

.sidebar-card .articles .article-item:last-child {
    border-bottom: none;
}

.sidebar-card .articles .article-item:hover {
    padding-left: 0.5rem;
}

.sidebar-card .articles .article-title {
    font-weight: 600;
    margin: 0 0 0.35rem 0;
    transition: var(--transition);
}

.sidebar-card .articles .article-item:hover .article-title {
    color: var(--primary);
}

.sidebar-card .articles .article-meta {
    font-size: 0.8rem;
    color: var(--gray);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sidebar-card .articles .article-meta i {
    font-size: 0.9rem;
}

/* 图文内容样式 */
.sidebar-card .image-contents .image-content-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--light-gray);
    cursor: pointer;
    transition: var(--transition);
}

.sidebar-card .image-contents .image-content-item:last-child {
    border-bottom: none;
}

.sidebar-card .image-contents .image-content-item:hover {
    transform: translateX(3px);
}

.sidebar-card .image-contents .image-content-item .content-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    transition: var(--transition);
}

.sidebar-card .image-contents .image-content-item:hover .content-image {
    filter: brightness(1.05);
}

.sidebar-card .image-contents .image-content-item .content-caption {
    font-weight: 500;
    margin: 0 0 0.25rem 0;
}

/* 论坛帖子样式 */
.sidebar-card .forum-posts .forum-post {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--light-gray);
    cursor: pointer;
    transition: var(--transition);
}

.sidebar-card .forum-posts .forum-post:last-child {
    border-bottom: none;
}

.sidebar-card .forum-posts .forum-post:hover {
    background-color: rgba(79, 70, 229, 0.02);
}

.sidebar-card .forum-posts .forum-post .post-title {
    font-weight: 600;
    margin: 0 0 0.35rem 0;
    transition: var(--transition);
}

.sidebar-card .forum-posts .forum-post:hover .post-title {
    color: var(--primary);
}

.sidebar-card .forum-posts .forum-post .post-meta {
    font-size: 0.8rem;
    color: var(--gray);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sidebar-card .forum-posts .forum-post .post-meta .comments {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.sidebar-card .forum-posts .forum-post .post-meta .views {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* 话题和标签样式 */
.sidebar-card .topics-container, .sidebar-card .tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 0.5rem 0;
}

.sidebar-card .topics-container .topic-item {
    background-color: var(--light-gray);
    border-radius: 20px;
    padding: 0.4rem 0.9rem;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    transition: var(--transition);
}

.sidebar-card .topics-container .topic-item:hover {
    background-color: var(--primary-light);
    color: white;
}

.sidebar-card .topics-container .topic-item i {
    font-size: 0.75rem;
    color: var(--gray);
    transition: var(--transition);
}

.sidebar-card .topics-container .topic-item:hover i {
    color: white;
}

.sidebar-card .tags-container .tag-item {
    background-color: rgba(79, 70, 229, 0.1);
    color: var(--primary);
    border-radius: 20px;
    padding: 0.35rem 0.85rem;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
}

.sidebar-card .tags-container .tag-item:hover {
    background-color: var(--primary);
    color: white;
}

/* 推荐用户样式 */
.sidebar-card .suggested-users .suggested-user {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--light-gray);
}

.sidebar-card .suggested-users .suggested-user:last-child {
    border-bottom: none;
}

.sidebar-card .suggested-users .suggested-user .user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sidebar-card .suggested-users .suggested-user .user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid transparent;
    transition: var(--transition);
}

.sidebar-card .suggested-users .suggested-user:hover .user-avatar {
    border-color: var(--primary-light);
}

.sidebar-card .suggested-users .suggested-user .user-details {
    min-width: 0;
}

.sidebar-card .suggested-users .suggested-user .user-name {
    font-weight: 600;
    margin: 0 0 0.15rem 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-card .suggested-users .suggested-user .user-meta {
    font-size: 0.8rem;
    color: var(--gray);
    margin: 0;
}

.sidebar-card .suggested-users .suggested-user .follow-btn {
    background-color: white;
    color: var(--primary);
    border: 1px solid var(--primary);
    border-radius: 20px;
    padding: 0.25rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
}

.sidebar-card .suggested-users .suggested-user .follow-btn:hover {
    background-color: var(--primary);
    color: white;
}

.sidebar-card .suggested-users .suggested-user .follow-btn.following {
    background-color: var(--light-gray);
    color: var(--dark-gray);
    border-color: var(--light-gray);
}

.sidebar-card .suggested-users .suggested-user .follow-btn.following:hover {
    background-color: var(--light-gray);
    color: var(--danger);
    border-color: var(--danger);
}

/* 活动样式 */
.sidebar-card .event-list .event-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--light-gray);
}

.sidebar-card .event-list .event-item:last-child {
    border-bottom: none;
}

.sidebar-card .event-list .event-item .event-date {
    display: inline-block;
    background-color: var(--primary-light);
    color: white;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.sidebar-card .event-list .event-item .event-title {
    font-weight: 600;
    margin: 0 0 0.25rem 0;
    color: var(--dark-gray);
    transition: var(--transition);
    cursor: pointer;
}

.sidebar-card .event-list .event-item .event-title:hover {
    color: var(--primary);
}

.sidebar-card .event-list .event-item .event-details {
    font-size: 0.85rem;
    color: var(--gray);
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-card .event-list .event-item .event-details i {
    font-size: 0.9rem;
}

.sidebar-card .event-list .event-item .join-btn {
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0.25rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
}

.sidebar-card .event-list .event-item .join-btn:hover {
    background-color: var(--primary-dark);
}

/* 通知样式 */
.sidebar-card .notifications .notification-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--light-gray);
    cursor: pointer;
    transition: var(--transition);
}

.sidebar-card .notifications .notification-item:last-child {
    border-bottom: none;
}

.sidebar-card .notifications .notification-item:hover {
    background-color: rgba(79, 70, 229, 0.02);
}

.sidebar-card .notifications .notification-item .notification-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(79, 70, 229, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}

.sidebar-card .notifications .notification-item .notification-icon.unread {
    position: relative;
}

.sidebar-card .notifications .notification-item .notification-icon.unread::after {
    content: '';
    position: absolute;
    top: 2px;
    right: 2px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--danger);
}

.sidebar-card .notifications .notification-item .notification-content {
    flex: 1;
    font-size: 0.9rem;
}

.sidebar-card .notifications .notification-item .notification-text {
    margin: 0 0 0.25rem 0;
}

.sidebar-card .notifications .notification-item .notification-text a {
    color: var(--primary);
    font-weight: 500;
    text-decoration: none;
}

.sidebar-card .notifications .notification-item .notification-text a:hover {
    text-decoration: underline;
}

.sidebar-card .notifications .notification-item .notification-time {
    font-size: 0.8rem;
    color: var(--gray);
    margin: 0;
}

/* 群组样式 */
.sidebar-card .groups .group-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--light-gray);
    cursor: pointer;
    transition: var(--transition);
}

.sidebar-card .groups .group-item:last-child {
    border-bottom: none;
}

.sidebar-card .groups .group-item:hover {
    transform: translateX(3px);
}

.sidebar-card .groups .group-item .group-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.sidebar-card .groups .group-item .group-details {
    flex: 1;
    min-width: 0;
}

.sidebar-card .groups .group-item .group-name {
    font-weight: 600;
    margin: 0 0 0.15rem 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-card .groups .group-item .group-meta {
    font-size: 0.8rem;
    color: var(--gray);
    margin: 0;
}

/* 赞助商样式 */
.sidebar-card.sponsor-card {
    background: linear-gradient(135deg, #6366F1, #8B5CF6);
    color: white;
    position: relative;
    overflow: hidden;
}

.sidebar-card.sponsor-card .sponsor-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 0.7rem;
    font-weight: 500;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
}

.sidebar-card.sponsor-card .sponsor-content {
    padding: 1rem 0;
}

.sidebar-card.sponsor-card .sponsor-logo {
    width: 60px;
    height: 60px;
    background-color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.sidebar-card.sponsor-card .sponsor-logo img {
    max-width: 80%;
    max-height: 80%;
}

.sidebar-card.sponsor-card .sponsor-title {
    font-weight: 600;
    text-align: center;
    margin: 0 0 0.5rem 0;
}

.sidebar-card.sponsor-card .sponsor-desc {
    font-size: 0.85rem;
    text-align: center;
    margin: 0 0 1rem 0;
    opacity: 0.9;
}

.sidebar-card.sponsor-card .sponsor-cta {
    display: block;
    width: 100%;
    background-color: white;
    color: var(--primary);
    text-align: center;
    padding: 0.5rem;
    border-radius: 6px;
    font-weight: 500;
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.sidebar-card.sponsor-card .sponsor-cta:hover {
    background-color: var(--light-gray);
    color: var(--primary-dark);
}

/* 推荐关注样式 */
.sidebar-card .suggested-user {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--light-gray);
}

.sidebar-card .suggested-user:last-child {
    border-bottom: none;
}

.sidebar-card .suggested-user .user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sidebar-card .suggested-user.user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid transparent;
    transition: border-color 0.2s ease;
}

.sidebar-card .suggested-user:hover .user-avatar {
    border-color: var(--primary-light);
}

.sidebar-card .suggested-user .user-details {
    min-width: 0;
}

.sidebar-card .suggested-user .user-name {
    font-weight: 600;
    margin: 0 0 0.15rem 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-card .suggested-user .user-meta {
    font-size: 0.8rem;
    color: var(--gray);
    margin: 0;
}

.sidebar-card .suggested-user .follow-btn {
    background-color: white;
    color: var(--primary);
    border: 1px solid var(--primary);
    border-radius: 20px;
    padding: 0.25rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.sidebar-card .suggested-user .follow-btn:hover {
    background-color: var(--primary);
    color: white;
}

.sidebar-card .suggested-user .follow-btn.following {
    background-color: var(--light-gray);
    color: var(--dark-gray);
    border-color: var(--light-gray);
}

.sidebar-card .suggested-user .follow-btn.following:hover {
    background-color: var(--light-gray);
    color: var(--danger);
    border-color: var(--danger);
}

/* 热门话题样式 */
.sidebar-card .trending-topics .trending-topic {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--light-gray);
    cursor: pointer;
    transition: transform 0.1s ease;
}

.sidebar-card .trending-topics .trending-topic:last-child {
    border-bottom: none;
}

.sidebar-card .trending-topics .trending-topic:hover {
    transform: translateX(5px);
}

.sidebar-card .trending-topics .trending-topic .topic-category {
    font-size: 0.8rem;
    color: var(--gray);
    margin: 0 0 0.25rem 0;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.sidebar-card .trending-topics .trending-topic .topic-title {
    font-weight: 600;
    margin: 0 0 0.25rem 0;
    color: var(--dark-gray);
}

.sidebar-card .trending-topics .trending-topic .topic-meta {
    font-size: 0.8rem;
    color: var(--gray);
    margin: 0;
}


/* 互动动态样式 */
.sidebar-card .activity-feed .activity-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--light-gray);
}

.sidebar-card .activity-feed .activity-item:last-child {
    border-bottom: none;
}

.sidebar-card .activity-feed .activity-item .activity-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.sidebar-card .activity-feed .activity-item .activity-content {
    flex: 1;
    font-size: 0.9rem;
}

.sidebar-card .activity-feed .activity-item .activity-text {
    margin: 0 0 0.25rem 0;
}

.sidebar-card .activity-feed .activity-item .activity-text a {
    color: var(--primary);
    font-weight: 500;
    text-decoration: none;
}

.sidebar-card .activity-feed .activity-item .activity-text a:hover {
    text-decoration: underline;
}

.sidebar-card .activity-feed .activity-item .activity-time {
    font-size: 0.8rem;
    color: var(--gray);
    margin: 0;
}

/* 当前用户信息 */
.sidebar-card .user-profile {
    background-color: var(--light);
    padding: 1.5rem 1.25rem;
    text-align: center;
}

.sidebar-card .user-profile .profile-avatar-large {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 4px solid white;
    object-fit: cover;
    margin: 0 auto 1rem;
}

.sidebar-card .user-profile .profile-name-large {
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.sidebar-card .user-profile .profile-handle {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.sidebar-card .user-profile .profile-bio {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.sidebar-card .user-profile .profile-stats {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.sidebar-card .user-profile .profile-stat {
    text-align: center;
}

.sidebar-card .user-profile .profile-stat-value {
    font-weight: 600;
    color: var(--primary);
    font-size: 1.1rem;
}

.sidebar-card .user-profile .profile-stat-label {
    color: var(--gray);
    font-size: 0.8rem;
}

.sidebar-card .user-profile .edit-profile-btn {
    background-color: white;
    color: var(--primary);
    border: 1px solid var(--primary);
    border-radius: 6px;
    padding: 0.4rem 1.25rem;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
}

.sidebar-card .user-profile .edit-profile-btn:hover {
    background-color: var(--primary);
    color: white;
}

/* 推荐用户 */
.sidebar-card .widget-content .suggestion-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.25rem;
    transition: background-color 0.2s;
}

.sidebar-card .widget-content .suggestion-item:hover {
    background-color: var(--light);
}

.sidebar-card .widget-content .suggestion-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 1rem;
}

.sidebar-card .widget-content .suggestion-info {
    flex: 1;
}

.sidebar-card .widget-content .suggestion-name {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0;
}

.sidebar-card .widget-content .suggestion-meta {
    color: var(--gray);
    font-size: 0.8rem;
}

.sidebar-card .widget-content .follow-btn {
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0.35rem 0.75rem;
    font-weight: 500;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.sidebar-card .widget-content .follow-btn:hover {
    background-color: #365899;
}

.sidebar-card .widget-content .follow-btn.following {
    background-color: transparent;
    color: var(--dark);
    border: 1px solid var(--border);
}

.sidebar-card .widget-content .follow-btn.following:hover {
    background-color: var(--light);
    color: var(--danger);
    border-color: var(--danger);
}

/* 推荐文章 */
.sidebar-card .widget-content .article-item {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    transition: background-color 0.2s;
}

.sidebar-card .widget-content .article-item:last-child {
    border-bottom: none;
}

.sidebar-card .widget-content .article-item:hover {
    background-color: var(--light);
}

.sidebar-card .widget-content .article-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    font-size: 0.95rem;
}

.sidebar-card .widget-content .article-meta {
    display: flex;
    align-items: center;
    font-size: 0.8rem;
    color: var(--gray);
}

.sidebar-card .widget-content .article-author {
    display: flex;
    align-items: center;
}

.sidebar-card .widget-content .author-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-right: 0.5rem;
}

.sidebar-card .widget-content .article-separator {
    margin: 0 0.5rem;
}

/* 图文内容 */
.sidebar-card .widget-content .image-content-item {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
}

.sidebar-card .widget-content .image-content-item:last-child {
    border-bottom: none;
}

.sidebar-card .widget-content .image-content-wrapper {
    display: flex;
    gap: 0.75rem;
}

.sidebar-card .widget-content .content-image {
    width: 80px;
    height: 80px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.sidebar-card .widget-content .image-content-info {
    flex: 1;
}

.sidebar-card .widget-content .image-content-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sidebar-card .widget-content .image-content-stats {
    display: flex;
    align-items: center;
    font-size: 0.8rem;
    color: var(--gray);
    gap: 1rem;
}

.sidebar-card .widget-content .content-stat {
    display: flex;
    align-items: center;
}

.sidebar-card .widget-content .content-stat i {
    margin-right: 0.25rem;
    font-size: 0.85rem;
}

/* 热门话题和标签 */
.sidebar-card .widget-content .topic-item {
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid var(--border);
    transition: background-color 0.2s;
    cursor: pointer;
}

.sidebar-card .widget-content .topic-item:last-child {
    border-bottom: none;
}

.sidebar-card .widget-content .topic-item:hover {
    background-color: var(--light);
}

.sidebar-card .widget-content .topic-name {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.sidebar-card .widget-content .topic-stats {
    font-size: 0.8rem;
    color: var(--gray);
}

.sidebar-card .tag-list {
    padding: 1rem 1.25rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.sidebar-card .tag-list .tag-item {
    background-color: #F8F9FA;
    color: var(--primary);
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    transition: all 0.2s;
    cursor: pointer;
}

.sidebar-card .tag-list .tag-item:hover {
    background-color: var(--primary);
    color: white;
}

/* 论坛和群组 */
.sidebar-card .widget-content .forum-item, .group-item {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    transition: background-color 0.2s;
}

.sidebar-card .widget-content .forum-item:last-child, .group-item:last-child {
    border-bottom: none;
}

.sidebar-card .widget-content .forum-item:hover, .group-item:hover {
    background-color: var(--light);
}

.sidebar-card .widget-content .forum-header, .group-header {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.sidebar-card .widget-content .forum-icon, .group-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background-color: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
    font-size: 1.25rem;
}

.sidebar-card .widget-content .forum-info, .group-info {
    flex: 1;
}

.sidebar-card .widget-content .forum-name, .group-name {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0;
}

.sidebar-card .widget-content .forum-desc, .group-desc {
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sidebar-card .widget-content .forum-stats, .group-stats {
    display: flex;
    font-size: 0.8rem;
    color: var(--gray);
    gap: 1rem;
}

/* 通知 */
.sidebar-card .widget-content .notification-item {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    transition: background-color 0.2s;
}

.sidebar-card .widget-content .notification-item:last-child {
    border-bottom: none;
}

.sidebar-card .widget-content .notification-item.unread {
    background-color: rgba(66, 103, 178, 0.05);
}

.sidebar-card .widget-content .notification-item:hover {
    background-color: var(--light);
}

.sidebar-card .widget-content .notification-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.25rem;
}

.sidebar-card .widget-content .notification-sender {
    font-weight: 600;
    font-size: 0.9rem;
}

.sidebar-card .widget-content .notification-time {
    color: var(--gray);
    font-size: 0.8rem;
}

.sidebar-card .widget-content .notification-content {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}


/* 查看更多链接 */
.sidebar-card .card-header .view-more {
    display: block;
    padding: 1rem 1.25rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    text-align: center;
    transition: background-color 0.2s;
}

.sidebar-card .card-header .view-more:hover {
    background-color: var(--primary-light);
    color: var(--primary);
}

/* 推荐关注 */
.sidebar-card .widget-content .suggestion-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.25rem;
    transition: background-color 0.2s;
}

.sidebar-card .widget-content .suggestion-item:hover {
    background-color: var(--light);
}

.sidebar-card .widget-content .suggestion-item .suggestion-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 1rem;
}

.sidebar-card .widget-content .suggestion-item .suggestion-info {
    flex: 1;
}

.sidebar-card .widget-content .suggestion-item .suggestion-name {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0;
}

.sidebar-card .widget-content .suggestion-item .suggestion-meta {
    color: var(--gray);
    font-size: 0.8rem;
}

.sidebar-card .widget-content .suggestion-item .follow-btn {
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0.35rem 0.75rem;
    font-weight: 500;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.sidebar-card .widget-content .suggestion-item .follow-btn:hover {
    background-color: #365899;
}

.sidebar-card .widget-content .suggestion-item .follow-btn.following {
    background-color: transparent;
    color: var(--dark);
    border: 1px solid var(--border);
}

.sidebar-card .widget-content .suggestion-item .follow-btn.following:hover {
    background-color: var(--light);
    color: var(--danger);
    border-color: var(--danger);
}

/* 热门话题 */
.sidebar-card .widget-content .trending-item {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background-color 0.2s;
}

.sidebar-card .widget-content .trending-item:last-child {
    border-bottom: none;
}

.sidebar-card .widget-content .trending-item:hover {
    background-color: var(--light);
}

.sidebar-card .widget-content .trending-item .trending-category {
    color: var(--gray);
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar-card .widget-content .trending-item .trending-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.sidebar-card .widget-content .trending-item .trending-stats {
    color: var(--gray);
    font-size: 0.8rem;
}

/* 最近活动 */
.sidebar-card .widget-content .activity-item {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    transition: background-color 0.2s;
}

.sidebar-card .widget-content .activity-item:last-child {
    border-bottom: none;
}

.sidebar-card .widget-content .activity-item:hover {
    background-color: var(--light);
}

.sidebar-card .widget-content .activity-item .activity-content {
    display: flex;
}

.sidebar-card .widget-content .activity-item .activity-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.sidebar-card .widget-content .activity-item .activity-icon.like {
    background-color: rgba(220, 53, 69, 0.1);
    color: var(--danger);
}

.sidebar-card .widget-content .activity-item .activity-icon.comment {
    background-color: rgba(40, 167, 69, 0.1);
    color: var(--success);
}

.sidebar-card .widget-content .activity-item .activity-icon.follow {
    background-color: rgba(26, 145, 218, 0.1);
    color: var(--secondary);
}

.sidebar-card .widget-content .activity-item .activity-text {
    flex: 1;
    font-size: 0.9rem;
}

.sidebar-card .widget-content .activity-item .activity-text strong {
    font-weight: 600;
}

.sidebar-card .widget-content .activity-item .activity-time {
    color: var(--gray);
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

/* 查看更多链接 */
.sidebar-card .view-more {
    display: block;
    padding: 1rem 1.25rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    text-align: center;
    transition: background-color 0.2s;
}

.sidebar-card .view-more:hover {
    background-color: var(--primary-light);
    color: var(--primary);
}


